﻿package newcommerce.lastfm.api.data 
{
	
	/**
	 * ...
	 * @author Martin Legris ( http://blog.martinlegris.com )
	 */
	public class LFMShoutData 
	{
		protected var _author:String;
		protected var _date:Date;
		protected var _body:String;
		
		public function get author():String { return _author; }
		public function get date():Date { return _date; }
		public function get body():String { return _body; }
		
		public function LFMShoutData() 
		{
			
		}
		
		public static function fromXML(xml:XML):LFMShoutData
		{
			var data:LFMShoutData = new LFMShoutData();
			data.body = xml.body.toString();
			data.author = xml.author.toString();
			data.date = new Date(Date.parse(xml.date.toString));
			
			return data;
		}
	}
}